Part Number Hot Search : 
S360JC LBN09006 100N8 CP219 ENTATI LTC34 ILQ621 UN4115Q
Product Description
Full Text Search
 

To Download PCA21125 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  PCA21125 spi-bus real-time clock and calendar rev. 01 ? 16 november 2009 product data sheet 1. general description the PCA21125 is a cmos 1 real-time clock (rtc) and calendar optimized for low-power consumption and an operating temperature up to 125 c. data is transferred via a serial peripheral interface (spi-bus) with a maximum data rate of 6.0 mbit/s. alarm and timer functions are also available with the possi bility to generate a wake-up signal on the interrupt pin. aec q100 compliant for automotive applications. 2. features ? provides year, month, day, weekday, hours, minutes, and seconds based on 32.768 khz quartz crystal ? resolution: seconds to years ? clock operating voltage: 1.3 v to 5.5 v ? low backup current: typical 0.55 a at v dd = 3.0 v and t amb = 25 c ? 3-line spi-bus with separate, but combinable data input and output ? serial interface at v dd = 1.6 v to 5.5 v ? 1 second or 1 minute interrupt output ? freely programmable timer with interrupt capability ? freely programmable alarm functi on with interrupt capability ? integrated osc illator capacitors ? internal power-on reset (por) ? open-drain interrupt pin 3. applications ? automotive time keeping ? metering 1. the definition of the abbreviations and acronyms used in this data sheet can be found in section 17 .
PCA21125_1 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 01 ? 16 november 2009 2 of 42 nxp semiconductors PCA21125 spi-bus real-time clock and calendar 4. ordering information table 1. ordering information type number package name description version PCA21125t/q900/1 tssop14 plastic thin shrink small outline package; 14 leads; body width 4.4 mm sot402-1 5. marking table 2. marking codes type number marking code PCA21125t/q900/1 pc21125 6. block diagram 013aaa217 PCA21125 oscillator 32.768 khz divider clock out interrupt clkout int monitor power-on reset watch- dog spi interface osci ce scl sdi sdo osco v dd v ss timer function timer_control 0eh countdown_timer 0fh control control_1 00h control_2 01h clkout_control 0dh time seconds 02h minutes 03h hours 04h days 05h alarm function minute_alarm 09h hour_alarm 0ah day_alarm 0bh weekday_alarm 0ch weekdays 06h months 07h years 08h c osco r pd fig 1. block diagram of PCA21125
PCA21125_1 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 01 ? 16 november 2009 3 of 42 nxp semiconductors PCA21125 spi-bus real-time clock and calendar 7. pinning information 7.1 pinning PCA21125 osci v dd osco clkout n.c. n.c. n.c. n.c. int scl ce sdi v ss sdo 013aaa074 1 2 3 4 5 6 7 8 10 9 12 11 14 13 fig 2. pin configuration for tssop14 7.2 pin description table 3. pin description symbol pin description osci 1 oscillator input osco 2 oscillator output n.c. 3, 4 not connected; do not connect and do not use as feed through; connect to v dd if floating pins are not allowed int 5 interrupt output (open-drain; active low) ce 6 chip enable input (active high) with 200 k pull-down resistor v ss 7 ground supply voltage sdo 8 serial data output, push-pull sdi 9 serial data input; might float when ce inactive scl 10 serial clock input; might float when ce inactive n.c. 11, 12 not connected; do not connect and do not use as feed through; connect to v dd if floating pins are not allowed clkout 13 clock output (open-drain) v dd 14 supply voltage
PCA21125_1 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 01 ? 16 november 2009 4 of 42 nxp semiconductors PCA21125 spi-bus real-time clock and calendar 8. functional description the PCA21125 contains 16 8-bit registers with an auto-incrementing address register, an on-chip 32.768 khz oscillator with one integrated ca pacitor, a frequency divider which provides the source clock for the rtc, a programmable clock output, and a 6 mhz spi-bus. all 16 registers are designed as addressable 8- bit parallel registers although not all bits are implemented: ? the first two registers at addresses 00h and 01h (control_1 and control_2) are used as control and status registers. ? registers at addresses 02h to 08h (seconds, minutes, hours, days, weekdays, months, years) are used as counters for the clock function. second s, minutes, hours, days, months, and years are all coded in binary coded decimal (bcd) format. when one of the rtc registers is read the contents of all counters are frozen. therefore, faulty reading of time and date during a carry condition is prevented. ? registers at addresses 09h to 0ch (minute_alarm, hour_alarm, day_alarm, and weekday_alarm) define the alarm condition. ? the register at address 0dh (clkout_co ntrol) defines the clock output mode. ? registers at addresses 0eh and 0fh (timer_control and countdown_timer) are used for the countdown timer function. the countdown timer has four selectable source clocks allowing for countdown periods in the range from less than 1 ms to more than 4 hours (see table 29 ). there are also two pre-defined timers which can be used to generate an interrupt once per second or once per minute. these are defined in register control_2 (01h).
PCA21125_1 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 01 ? 16 november 2009 5 of 42 nxp semiconductors PCA21125 spi-bus real-time clock and calendar 8.1 register overview the time, date, and alarm registers are encode d in bcd to simplify application use. other registers are either bit-wise or standard binary. table 4. register overview bits labeled - are not implemented and will return logic 0 when read. bit positions labeled n should always be written with logic 0. after reset, all registers are set according to table 37 . address register name bit 7 6 5 4 3 2 1 0 control and status registers 00h control_1 ext_test n stop n por_ovrd 12_24 n n 01h control_2 mi si msf ti_tp af tf aie tie time and date registers 02h seconds rf seconds (0 to 59) 03h minutes - minutes (0 to 59) 04h hours - - ampm hours (1 to 12) in 12 hour mode - - hours (0 to 23) in 24 hour mode 05h days - - days (1 to 31) 06h weekdays - - - - - weekdays (0 to 6) 07h months - - - months (1 to 12) 08h years years (0 to 99) alarm registers 09h minute_alarm ae_m minute_alarm (0 to 59) 0ah hour_alarm ae_h - ampm hour_alarm (1 to 12) in 12 hour mode - hour_alarm (0 to 23) in 24 hour mode 0bh day_alarm ae_d - day_alarm (1 to 31) 0ch weekday_alarm ae_w - - - - weekday_alarm (0 to 6) clkout control register 0dh clkout_control - - - - - cof timer registers 0eh timer_control te - - - - - ctd 0fh countdown_timer countdown_timer
PCA21125_1 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 01 ? 16 november 2009 6 of 42 nxp semiconductors PCA21125 spi-bus real-time clock and calendar 8.2 control and status registers 8.2.1 register control_1 table 5. control_1 - control an d status register 1 (address 00h) bit description bit symbol value description reference 7 ext_test 0 [1] normal mode section 8.8 1 external clock test mode 6 n 0 unused - 5 stop 0 [1] rtc source clock runs section 8.9 1 rtc clock is stopped [2] 4 n 0 unused - 3 por_ovrd 0 por override facility is disabled; remark: set logic 0 for normal operation section 8.10.1 1 [1] por override enabled 2 12_24 0 [1] 24 hour mode selected table 10 and ta b l e 18 1 12 hour mode selected 1 to 0 n 0 unused - [1] default value. [2] clkout at 32.768 khz, 16.384 khz or 8.192 khz is still available; divider chain flip-flops are asynchronously set logic 0. 8.2.2 register control_2 table 6. control_2 - control an d status register 2 (address 01h) bit description bit symbol value description reference 7 mi 0 [1] minute interrupt disabled section 8.6.1 1 minute interrupt enabled 6 si 0 [1] second interrupt disabled section 8.6.1 1 second interrupt enabled 5 msf 0 [1] no minute or second interrupt generated section 8.6.1 1 flag set when minute or second interrupt generated 4 ti_tp 0 [1] interrupt pin follows tf and msf (see figure 9 ) section 8.6 et seqq. and section 8.7 et seqq. 1 interrupt pin generates a pulse 3 af 0 [1] no alarm interrupt generated section 8.4.5 1 flag set when alarm triggered; remark: flag must be cleared to clear interrupt 2 tf 0 [1] no countdown timer interrupt generated section 8.6 et seqq. and section 8.7 et seqq. 1 flag set when countdown timer interrupt generated 1 aie 0 [1] no interrupt generated from alarm flag section 8.7.3 1 interrupt generated when alarm flag set 0 tie 0 [1] no interrupt generated from countdown timer flag section 8.7 1 interrupt generated when countdown timer flag set [1] default value.
PCA21125_1 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 01 ? 16 november 2009 7 of 42 nxp semiconductors PCA21125 spi-bus real-time clock and calendar 8.3 time and date registers the majority of these registers are coded in the binary coded decimal (bcd) format. bcd is used to simplify application use. an example is shown for register seconds in ta b l e 8 . loading these registers with values outside of the given range will resu lt in unpredictable time and date generation (see figure 3 ? data flow of the time function ? ). 8.3.1 register seconds table 7. seconds - seconds and clock integrity status register (address 02h) bit description bit symbol value description 7 rf 0 clock integrity is guaranteed 1 [1] clock integrity is not guaranteed; chip reset has o ccurred since flag was last cleared 6 to 4 seconds 0 to 5 ten?s place 3 to 0 0 to 9 unit place [1] start-up value. table 8. seconds coded in bcd format seconds value in decimal upper-digit (ten?s place) digit (unit place) bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 00 0 0 0 0 0 0 0 01 0 0 0 0 0 0 1 02 0 0 0 0 0 1 0 : : : : : : : : 09 0 0 0 1 0 0 1 10 0 0 1 0 0 0 0 : : : : : : : : 58 1 0 1 1 0 0 0 59 1 0 1 1 0 0 1 8.3.2 register minutes table 9. minutes - minutes register (address 03h) bit description bit symbol value description 7 - 0 unused 6 to 4 minutes 0 to 5 ten?s place 3 to 0 0 to 9 unit place
PCA21125_1 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 01 ? 16 november 2009 8 of 42 nxp semiconductors PCA21125 spi-bus real-time clock and calendar 8.3.3 register hours table 10. hours - hours register (address 04h) bit description bit symbol value description 7 to 6 - 0 unused 12 hour mode [1] 5 ampm 0 indicates am 1 indicates pm 4 to 0 hours 0 to 1 ten?s place 3 to 0 0 to 9 unit place 24 hour mode [1] 5 to 4 hours 0 to 2 ten?s place 3 to 0 0 to 9 unit place [1] hour mode is set by bit 12_24 in register control_1 (see table 5 ). 8.3.4 register days table 11. days - days register (address 05h) bit description bit symbol value place value description 7 to 6 - - - unused 5 to 4 days [1] 0 to 3 ten?s place actual day coded in bcd format 3 to 0 0 to 9 unit place [1] the PCA21125 compensates for leap years by adding a 29t h day to february if the year counter contains a value which is ex actly divisible by 4, including the year 00. 8.3.5 register weekdays table 12. weekdays - weekdays register (address 06h) bit description bit symbol value description 7 to 3 - - unused 2 to 0 weekdays 0 to 6 actual weekday, values see table 13 table 13. weekday assignments day [1] bit 2 1 0 sunday 0 0 0 monday 0 0 1 tuesday 0 1 0 wednesday 0 1 1 thursday 1 0 0 friday 1 0 1 saturday 1 1 0 [1] definition may be re-assigned by the user.
PCA21125_1 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 01 ? 16 november 2009 9 of 42 nxp semiconductors PCA21125 spi-bus real-time clock and calendar 8.3.6 register months table 14. months - months register (address 07h) bit description bit symbol value description 7 to 5 - 0 unused 4 months 0 to 1 ten?s place 3 to 0 0 to 9 unit place table 15. month assignments in bcd format month upper-digit (ten?s place) digit (unit place) bit 4 bit 3 bit 2 bit 1 bit 0 january 0 0 0 0 1 february 0 0 0 1 0 march 0 0 0 1 1 april 0 0 1 0 0 may 0 0 1 0 1 june 0 0 1 1 0 july 0 0 1 1 1 august 0 1 0 0 0 september 0 1 0 0 1 october 1 0 0 0 0 november 1 0 0 0 1 december 1 0 0 1 0 8.3.7 register years table 16. years - years register (08h) bit description bit symbol value place value description 7 to 4 years 0 to 9 ten?s place actual year coded in bcd format 3 to 0 0 to 9 unit place
PCA21125_1 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 01 ? 16 november 2009 10 of 42 nxp semiconductors PCA21125 spi-bus real-time clock and calendar 8.3.8 setting and reading the time figure 3 shows the data flow and data dependenci es starting from the 1 hz clock tick. 001aaf90 1 1 hz tick 12_24 hour mode weekday seconds minutes hours days leap year calculation months years fig 3. data flow of the time function during read/write operations, the time counting circuits (memory locations 02h through 08h) are blocked. this prevents ? faulty reading of the clock and calendar during a carry condition ? incrementing the time regist ers during the read cycle after this read/write access is completed, the time circuit is released again and any pending request to increment the time counte rs that occurred during the read/write access is serviced. a maximum of 1 request can be stored; therefore, all accesses must be completed within 1 second (see figure 4 ). t < 1 s 013aaa22 2 command data bus chip enable data data data fig 4. access time for read/write operations as a consequence of this method, it is very important to make a read or write access in one go, that is, setting or reading seconds through to years should be made in one single access. failing to comply with this method co uld result in the time becoming corrupted.
PCA21125_1 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 01 ? 16 november 2009 11 of 42 nxp semiconductors PCA21125 spi-bus real-time clock and calendar as an example, if the time (seconds through to hours) is set in one access and then in a second access the date is set, it is possible that the time may increment between the two accesses. a similar problem exists when reading. a roll over may occur between reads thus giving the minutes from one moment and the hours from the next. therefore it is advised to read all time and date registers in one access. 8.4 alarm registers when one or several alarm registers are loaded with a valid minute, hour, day, or weekday value and its corresponding alarm enable bit (ae_x) is logic 0, then that information is compared with the current minute, hour, day, and weekday value. 8.4.1 register minute_alarm table 17. minute_alarm - minut e alarm register (address 09h) bit description bit symbol value place value description 7 ae_m 0 - minute alarm is enabled 1 [1] - minute alarm is disabled 6 to 4 minute_alarm 0 to 5 ten?s place minute alarm information coded in bcd format 3 to 0 0 to 9 unit place [1] default value. 8.4.2 register hour_alarm table 18. hour_alarm - hour alarm register (address 0ah) bit description bit symbol value description 7 ae_h 0 hour alarm is enabled 1 [1] hour alarm is disabled 6 - 0 unused 12 hour mode [2] 5 ampm 0 indicates am 1 indicates pm 4 to 0 hour_alarm 0 to 1 ten?s place 3 to 0 0 to 9 unit place 24 hour mode [2] 5 to 4 hours 0 to 2 ten?s place 3 to 0 0 to 9 unit place [1] default value. [2] hour mode is set by bit 12_24 in register control_1 (see table 5 ).
PCA21125_1 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 01 ? 16 november 2009 12 of 42 nxp semiconductors PCA21125 spi-bus real-time clock and calendar 8.4.3 register day_alarm table 19. day_alarm - day alarm register (address 0bh) bit description bit symbol value place value description 7 ae_d 0 - day alarm is enabled 1 [1] - day alarm is disabled 6 - - - unused 5 to 4 day_alarm 0 to 3 ten?s place day alarm information coded in bcd format 3 to 0 0 to 9 unit place [1] default value. 8.4.4 register weekday_alarm table 20. weekday_alarm - weekd ay alarm register (address 0ch) bit description bit symbol value description 7 ae_w 0 weekday alarm is enabled 1 [1] weekday alarm is disabled 6 to 3 - - unused 2 to 0 weekday_alarm 0 to 6 weekday alarm information coded in bcd format [1] default value. 8.4.5 alarm flag by clearing the msb, ae_x (a larm enable), of one or more of the alarm registers the corresponding alarm condition(s) are active. when an alarm occurs, af (register control_2, see ta b l e 6 ) is set logic 1. the asserted af can be used to generate an interrupt ( int ). the af is cleared using the interface. 013aaa088 weekday alarm ae_w weekday time = day alarm ae_d day time = hour alarm ae_h hour time = minute alarm ae_m minute time = check now signal set alarm flag af (1) ae_m = 1 1 0 example fig 5. alarm function block diagram
PCA21125_1 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 01 ? 16 november 2009 13 of 42 nxp semiconductors PCA21125 spi-bus real-time clock and calendar the registers at addresses 09h through 0ch contain alarm information. when one or more of these registers is loaded with minute, hour, day, or weekday, and its corresponding alarm enable bit (ae_x) is logic 0, then that information is compared with the current minute, hour, day, and weekday. when all enabled comparisons first match, the alarm flag (af) is set logic 1. the generation of interrupts from the alarm function is controlled via bit aie (register control_2, see table 6 ). if bit aie is enabled, the int pin follows the condition of bit af. af will remain set until cleared by the interface. once af has be en cleared, it will only be set again when the time increments to match the alarm condition once more. alarm registers which have their ae_x bit logic 1 are ignored. generation of interrupts from the alarm function is described in section 8.7.3 . figure 6 , ta b l e 21 and ta b l e 22 show an example for clearing bit af, but leaving bit msf and bit tf unaffected. the flags are cleared by a write command, therefore bits 7, 6, 4, 1 and 0 must be written with their previous valu es. repeatedly re-writing these bits has no influence on the functional behavior. 001aaf9 03 44 45 45 minute alarm minutes counter af int when aie = 1 46 example where only the minute alarm is used and no other interrupts are enabled. fig 6. alarm flag timing to prevent the timer flags being overwritten wh ile clearing bit af, logic and is performed during a write access. a flag is cleared by writing logic 0 whilst a flag is not cleared by writing logic 1. writing logic 1 will result in the flag value remaining unchanged. table 21. flag location in register control_2 register bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 control_2 - - msf - af tf - - ta b l e 22 shows what instruction must be sent to clear bit af. in this example, bit msf and bit tf are unaffected. table 22. example to clear only af (bit 3) in register control_2 register bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 control_2 - - 1 - 0 1 - -
PCA21125_1 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 01 ? 16 november 2009 14 of 42 nxp semiconductors PCA21125 spi-bus real-time clock and calendar 8.5 register clkout_control and clock output a programmable square wave is available at pin clkout. operation is controlled by control bits cof[2:0] in register clkout_control (0dh); see ta b l e 23 . frequencies of 32.768 khz (default) down to 1 hz can be generated for use as a system clock, microcontroller clock, input to a charge pump, or for ca libration of the oscillator. table 23. clkout_contr ol - clkout control register (address 0dh) bit description bit symbol value description 7 to 3 - - unused 2 to 0 cof[2:0] see ta b l e 24 frequency output at pin clkout pin clkout is an open-drain output and en abled at power-on. when disabled the output is low. the duty cycle of the selected clock is not c ontrolled, but due to the nature of the clock generation, all clock frequencies, except 32.7 68 khz, have a duty cycle of 50 : 50. the stop function can also affect the clkout signal, depending on the selected frequency. when stop is active, the cl kout pin will generate a continuous low for those frequencies that can be stopped. for more details, see section 8.9 . table 24. clkout frequency selection bits cof[2:0] clkout frequency (hz) typical duty cycle [1] (%) effect of stop 000 [2] 32 768 60 : 40 to 40 : 60 no effect 001 16 384 50 : 50 no effect 010 8 192 50 : 50 no effect 011 4 096 50 : 50 clkout = low 100 2 048 50 : 50 clkout = low 101 1 024 50 : 50 clkout = low 110 1 50 : 50 clkout = low 111 clkout = low [1] duty cycle definition: high-level time (%) : low-level time (%). [2] default value. 8.6 timer registers the countdown timer has four selectable source clocks allowing for countdown periods in the range from less than 1 ms to more than 4 hours (see ta b l e 29 ). there are also two pre-defined timers which can be used to generate an interrupt once per second or once per minute. registers control_2 (01h), timer_control (0eh), and countdown_timer (0fh) are used to control the timer function and output.
PCA21125_1 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 01 ? 16 november 2009 15 of 42 nxp semiconductors PCA21125 spi-bus real-time clock and calendar table 25. timer_control - time r control register (address 0eh) bit description bit symbol value description reference 7 te 0 [1] countdown timer is disabled section 8.6.2 1 countdown timer is enabled 6 to 2 - 0 unused 1 to 0 ctd[1:0] 00 4.096 khz countdown timer source clock 01 64 hz countdown timer source clock 10 1 hz countdown timer source clock 11 [1] 1 ? 60 hz countdown timer source clock [1] default value. table 26. countdown_timer - countdown timer register (address 0fh) bit description bit symbol value description reference 7 to 0 countdown_timer[7:0] 00h to ffh countdown period in seconds: countdownperiod n sourceclockfrequency -------------------------------------------------------------- - = where n is the countdown value section 8.6.2 8.6.1 second and minute interrupt the second and minute interrupts (bits si and mi) are pre-defined timers for generating periodic interrupts. the timers can be enabl ed independently of one another, however a minute interrupt en abled on top of a second interrupt will not be distinguishable since it will occur at the same time; see figure 7 . the minute and second flag (msf) is set logic 1 when either the seconds or the minutes counter increments according to the currently enabled interrupt. the flag can be read and cleared by the interface. the status of bit msf does not affect the int pulse generation. if the msf flag is not cleared prior to the next coming interrupt period, an int pulse will still be generated. table 27. effect of bits mi and si on int generation minute interrupt (bit mi) second interrupt (bit si) result 0 0 no interrupt generated 1 0 an interrupt once per minute 0 1 an interrupt once per second 1 1 an interrupt once per second table 28. effect of bits mi and si on bit msf minute interrupt (bit mi) second interrupt (bit si) result 0 0 msf never set 1 0 msf set when minutes counter increments [1] 0 1 msf set when seconds counter increments 1 1 msf set when seconds counter increments [1] in the case of bit mi = 1 and bit si = 0 bit msf will be cleared automatically after 1 second.
PCA21125_1 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 01 ? 16 november 2009 16 of 42 nxp semiconductors PCA21125 spi-bus real-time clock and calendar 001aai5 20 seconds counter minutes counter int msf 58 59 00 59 00 11 12 01 a. int and msf when si enabled (msf flag not cleared after an interrupt) 001aai5 21 seconds counter minutes counter int msf 58 59 00 59 00 11 12 01 b. int and msf when only mi enabled bit ti_tp is set logic 1 resulting in 1 ? 64 hz wide interrupt pulse. fig 7. int example for bits si and mi the purpose of the flag is to allow th e controlling system to interrogate the PCA21125 and identify the source of the in terrupt such as the minute/second or countdown timer. 8.6.2 countdown timer function the 8-bit countdown timer at address 0fh is controlled by the timer control register at address 0eh. the timer control register determines one of 4 source clock frequencies for the timer (4.096 khz, 64 hz, 1 hz, or 1 ? 60 hz) and enables or disables the timer. table 29. ctd[1:0] for timer frequency se lection and countdown timer durations ctd[1:0] timer source clock frequency delay minimum timer duration n = 1 maximum timer duration n = 255 00 4.096 khz 244 s 62.256 ms 01 64 hz 15.625 ms 3.984 s 10 1 hz 1 s 255 s 11 1 ? 60 hz 60 s [1] 4 h 15 min [1] when not in use, ctd[1:0] must be set to 1 ? 60 hz for power saving. remark: note that all timings which are generated from the 32.768 khz oscillator are based on the assumption that there is 0 ppm deviation. deviation in oscillator frequency will result in a corresponding devi ation in timings. this is not applicable to interface timing.
PCA21125_1 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 01 ? 16 november 2009 17 of 42 nxp semiconductors PCA21125 spi-bus real-time clock and calendar the timer counts down from a software-loaded 8-bit binary value n. loading the counter with 0 effectively stops the timer. values from 1 to 255 are valid. when the counter reaches 1, the countdown timer flag (bit tf in register control_2, see ta b l e 6 ) will be set and the counter automatically re-loads and starts the next timer period. reading the timer will return the current value of the countdown counter; see figure 8 . 001aaf90 6 n duration of first timer period after enable may range from n ? 1 to n + 1 03 xx 02 01 03 02 01 03 02 01 03 n 03 xx countdown value, n timer source clock countdown counter te tf int in the example it is assumed that the timer fl ag is cleared before the next countdown period expires and that the int is set to pulsed mode. fig 8. general countdown timer behavior if a new value of n is written be fore the end of the current timer period, then this value will take immediate effect. it is not recommended to change n without first disabling the counter (by setting bit te = 0). the update of n is asynchronous with the timer clock, therefore changing it without setting bit te = 0 will result in a corrupte d value loaded into the countdown counter which results in an undetermined countdown period for the first period. the countdown value n will however be correctly stored and correctly loaded on subsequent timer periods. when the countdown timer flag is set, an interrupt signal on int will be generated, provided that this mode is enabled. see section 8.7.2 for details on how the interrupt can be controlled. when starting the timer for the first time, the first period will have an uncertainty which is a result of the enable instruction being ge nerated from the inte rface clock which is asynchronous with the timer so urce clock. subsequent time r periods will have no such delay. the amount of delay fo r the first timer period will depend on the chosen source clock; see ta b l e 30 . table 30. first period delay for timer counter value n timer source clock minimum timer period maximum timer period 4.096 khz n n + 1 64 hz n n + 1 1 hz (n ? 1) + 1 ? 64 hz n + 1 ? 64 hz 1 ? 60 hz (n ? 1) + 1 ? 64 hz n + 1 ? 64 hz
PCA21125_1 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 01 ? 16 november 2009 18 of 42 nxp semiconductors PCA21125 spi-bus real-time clock and calendar at the end of every countdown, the timer sets the countdown timer flag (bit tf). bit tf can only be cleared by using the interface. the asserted bit tf can be used to generate an interrupt ( int ). the interrupt can be generated as a pulsed signal every countdown period or as a permanently active signal which follows the condition of bit tf. bit ti_tp is used to control this mode selection and the inte rrupt output can be disabled with bit tie. for accurate read back of the count down va lue, it is recommended to read the register twice and check for consistent results, since it is not possible to freeze the countdown timer counter during read back. 8.6.3 timer flags when a minute or second interrupt occurs, bit msf (register control_2, see ta b l e 6 ) is set logic 1. similarly, at the end of a timer countdown, bit tf is set logic 1. these bits maintain their value until overwritten by using the interface. if both countdown timer and minute/second interrupts are required in the ap plication, the source of the interrupt can be determined by reading these bits. to prevent one flag being overwritten while clearing another, a logic and is performed during a wr ite access. a flag is cleared by writing logic 0 whilst a flag is not cleared by writing logic 1. writing logic 1 will result in the flag value remaining unchanged. three examples are given for clearing the flag s. flags msf and tf are cleared by a write command, therefore bits 7, 6, 4, 1, and 0 must be written with their previous values. repeatedly re-writing these bits has no influence on the functional behavior. table 31. flag location in register control_2 register bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 control_2 - - msf - af tf - - ta b l e 32 , table 33 , and ta b l e 34 show what instruction must be sent to clear the appropriate flag. table 32. example to clear only tf (bit 2) in register control_2 register bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 control_2 - - 1 - 1 0 - - table 33. example to clear only msf (bit 5) in register control_2 register bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 control_2 - - 0 - 1 1 - - table 34. example to clear both tf and ms f (bits 2 and 5) in register control_2 register bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 control_2 - - 0 - 1 0 - - clearing the alarm flag (bit af) operates in exactly the same way; see section 8.4.5 . 8.7 interrupt output an active low interrupt signal is available at pin int . operation is controlled via the bits of register control_2. interrupts can be sourced from three places: second/minute timer, countdown timer, and alarm function.
PCA21125_1 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 01 ? 16 november 2009 19 of 42 nxp semiconductors PCA21125 spi-bus real-time clock and calendar bit ti_tp configures the timer generated inte rrupts to be either a pulse or to follow the status of the interrupt flags (bits tf and msf). 001aaf90 7 seconds counter si 0 1 msf: minute second flag clear set pulse generator 1 clear trigger te si mi minutes counter countdown counter mi from interface: clear msf to interface: read msf af: alarm flag clear set to interface: read af 0 1 tf: timer clear set pulse generator 2 clear trigger tie int from interface: clear tf from interface: clear af set alarm flag, af to interface: read tf ti_tp aie when bits si, mi, tie and aie are all disabled, pin int will remain high-impedance. fig 9. interrupt scheme remark: note that the interrupts from the three groups are wired-or, meaning they will mask one another; see figure 9 . 8.7.1 minute and second interrupts the pulse generator for the minute/second interrupt operates from an internal 64 hz clock and consequently generates a pulse of 1 ? 64 second duration. if the msf flag is clear before the end of the int pulse, then the int pulse is shortened. this allows the source of a sy stem interrupt to be cleared im mediately it is serviced, i.e., the system does not have to wa it for the completion of the pulse before continuing; see figure 10 . instructions for clearing msf are given in section 8.6.3 .
PCA21125_1 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 01 ? 16 november 2009 20 of 42 nxp semiconductors PCA21125 spi-bus real-time clock and calendar 001aaf90 8 58 seconds counter msf int scl instruction 59 clear instruction 8th clock (1) (1) indicates normal duration of int pulse (bit ti_tp = 1). fig 10. example of shortening the int pulse by clearing the msf flag the timing shown for clearing bit msf in figure 10 is also valid for the non-pulsed interrupt mode, i.e., when bit ti_tp = 0, where the pulse can be shortened by setting both bits mi and si logic 0. 8.7.2 countdown timer interrupts generation of interrupts from the countdown timer is controlled via bit tie (register control_2, see ta b l e 6 ). the pulse generator for the countdown timer inte rrupt also uses an internal clock which is dependent on the selected source clock fo r the countdown timer and on the countdown value n. as a consequence, the widt h of the interrupt pulse varies; see ta b l e 35 . table 35. int operation (bit ti_tp = 1) source clock (hz) int period (s) n = 1 [1] n > 1 4 096 1 ? 8 192 1 ? 4 096 64 1 ? 128 1 ? 64 1 1 ? 64 1 ? 64 1 ? 60 1 ? 64 1 ? 64 [1] n = loaded countdown value. timer stopped when n = 0. if the tf flag is cleared before the end of the int pulse, then the int pulse is shortened. this allows the source of a sy stem interrupt to be cleared im mediately it is serviced, i.e., the system does not have to wa it for the completion of the pulse before continuing; see figure 11 . instructions for clearing tf are given in section 8.6.3 .
PCA21125_1 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 01 ? 16 november 2009 21 of 42 nxp semiconductors PCA21125 spi-bus real-time clock and calendar 001aaf90 9 01 countdown counter cdtf int scl instruction n clear instruction 8th clock (1) (1) indicates normal duration of int pulse (bit ti_tp = 1). fig 11. example of shortening the int pulse by clearing the tf flag the timing shown for clearing bit tf in figure 11 is also valid for the non-pulsed interrupt mode, i.e., when bit ti_tp = 0, where the pulse can be shortened by setting bit tie = 0. 8.7.3 alarm interrupts generation of interrupts from the alarm fu nction is controlled via bit aie (register control_2, see ta b l e 6 ). if bit aie is enabled, the int pin follows the status of bit af. clearing bit af will immediately clear int . no pulse generation is possible for alarm interrupts; see figure 12 . 001aaf9 10 44 45 minute counter minute alarm af int scl instruction 45 clear instruction 8th clock example where only the minute alarm is used and no other interrupts are enabled. fig 12. af timing 8.8 external clock test mode a test mode is available which allo ws for on-board testing. in th is mode it is possible to set up test conditions and control the operation of the rtc. the test mode is entered by setting the ext_test bit in register control_1 (see ta b l e 5 ). the clkout pin then becomes an input. the test mode replaces the internal signal with the signal applied to pin clkout.
PCA21125_1 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 01 ? 16 november 2009 22 of 42 nxp semiconductors PCA21125 spi-bus real-time clock and calendar the signal applied to pin clkout should have a minimum pulse width of 300 ns and a maximum period of 1 000 ns. the internal clock, now sourced from pin clkout, is divided down to 1 hz by a 2 6 divide chain called a prescaler; see section 8.9 . the prescaler can be set into a known state by using the stop bit. when the stop bit is set, the prescaler is reset to 0. (stop must be cleared before the prescaler can operate again.) from a stop condition, the first 1 second increment will take place after 32 positive edges on pin clkout. thereafter, every 64 positive edges will cause a 1 second increment. remark: entry into test mode is not synchronized to the internal 64 hz clock. when entering the test mode, no assumption as to the state of the prescaler can be made. operation example: 1. set ext_test test mode (register control_1, bit ext_test = 1). 2. set stop (register control_1, bit stop = 1). 3. clear stop (register control_1, bit stop = 0). 4. set time registers to desired value. 5. apply 32 clock pulses to pin clkout. 6. read time registers to see the first change. 7. apply 64 clock pulses to pin clkout. 8. read time registers to see the second change. repeat steps 7 and 8 for additional increments. 8.9 stop bit function the stop bit function (register control_1, see table 5 ) allows the accurate starting of the time circuits. the stop bit function will cause the upper part of the prescaler (f 2 to f 14 ) to be held at reset, thus no 1 hz ticks will be generate d. the time circuits can then be set and will not increment until stop is released; see figure 13 . 001aaf91 1 osc 32768 hz 16384 hz osc stop detector f 0 f 1 f 13 res f 14 res f 2 res 2 hz 1 hz 1024 hz 16384 hz 8192 hz 1 hz tick stop clkout source reset 8192 hz 4096 hz fig 13. stop bit functional diagram
PCA21125_1 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 01 ? 16 november 2009 23 of 42 nxp semiconductors PCA21125 spi-bus real-time clock and calendar stop will not affect the output of 32.768 khz, 16.384 khz, or 8.192 khz; see section 8.5 . the lower two stages of the prescaler (f 0 and f 1 ) are not reset and because the spi-bus is asynchronous to the crystal oscillator, the ac curacy of re-starting th e time circuits will be between 0 and one 8.192 khz cycle; see figure 14 . the first increment of the time circuits is between 0.499 888 s and 0.500 000 s after stop is released. the uncertainty is caused by prescaler bits f0 and f1 not being reset; see ta b l e 36 . 001aaf91 2 8192 hz stop released 0 s to 122 s fig 14. stop bit release timing table 36. example: first increment of time circuits after stop release bit stop prescaler bits 1 hz tick time comment f 0 f 1 -f 2 to f 14 [1] hh:mm:ss clock is running normally 0 01-0 0001 1101 0100 12:45:12 prescaler counting normally stop is activated by user. f0f1 are not reset and values can not be predicted externally 1 xx-0 0000 0000 0000 12:45:12 prescaler is reset; time circuits are frozen new time is set by user 1 xx-0 0000 0000 0000 08:00:00 prescaler is reset; time circuits are frozen stop is released by user 0 xx-0 0000 0000 0000 001aaf913 0.499888 - 0.500000 s 1 s 08:00:00 prescaler is now running xx-1 0000 0000 0000 08:00:00 - xx-0 1000 0000 0000 08:00:00 - xx-1 1000 0000 0000 08:00:00 - : : : 11-1 1111 1111 1110 08:00:00 - 00-0 0000 0000 0001 08:00:01 0 to 1 transition of f14 increments the time circuits 10-0 0000 0000 0001 08:00:01 - : : : 11-1 1111 1111 1111 08:00:01 - 00-0 0000 0000 0000 08:00:01 - 10-0 0000 0000 0000 08:00:01 - : : : 11-1 1111 1111 1110 08:00:01 - 00-0 0000 0000 0001 08:00:02 0 to 1 transition of f14 increments the time circuits [1] f 0 is clocked at 32.768 khz.
PCA21125_1 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 01 ? 16 november 2009 24 of 42 nxp semiconductors PCA21125 spi-bus real-time clock and calendar 8.10 reset the PCA21125 includes an internal reset circuit wh ich is active whenever the oscillator is stopped; see figure 15 . the oscillator can be stopped, fo r example, by connecting one of the oscillator pins osci or osco to ground. 001aaf89 8 sdi ce 0 = override inactive 0 = clear override mode 0 = stopped, 1 = running osc stopped 1 = override active 1 = override possible clear por override bit por_ovrd oscillator reset fig 15. reset system the oscillator is considered to be stopped during the time between power-on and stable crystal resonance; see figure 16 . this time can be in the range of 200 ms to 2 s depending on crystal type, temperature and supply voltage. whenever an internal reset occurs, the reset flag rf (register seconds, see ta b l e 7 ) is set. 001aaf89 7 chip in reset chip not in reset t v dd oscillation internal reset fig 16. power-on reset (por)
PCA21125_1 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 01 ? 16 november 2009 25 of 42 nxp semiconductors PCA21125 spi-bus real-time clock and calendar table 37. register reset values bits labeled - are not implemented and will return logic 0 when read. bits labeled x are undefined at power-on and unchanged by subsequent resets. address register name bit 7 6 5 4 3 2 1 0 00h control_1 0 0 0 - 1 0 - - 01h control_2 0 0 0 0 0 0 0 0 02h seconds 1 x x x x x x x 03h minutes - x x x x x x x 04h hours - - x x x x x x 05h days - - x x x x x x 06h weekdays - - - - - x x x 07h months - - - x x x x x 08h years x x x x x x x x 09h minute_alarm 1 x x x x x x x 0ah hour_alarm 1 - x x x x x x 0bh day_alarm 1 - x x x x x x 0ch weekday_alarm 1 - - - - x x x 0dh clkout_control - - - - - 0 0 0 0eh timer_control 0 - - - - - 1 1 0fh countdown_timer x x x x x x x x after reset, the followin g mode is entered: ? 32.768 khz on pin clkout active ? por override available to be set ? 24 hour mode is selected the spi-bus is initialized wh enever the chip enable pin ce is inactive (low). 8.10.1 por override the power-on reset (por) duration is directly related to the crysta l oscillator start-up time. due to the long start-up times experien ced by these types of circuits, a mechanism has been built in to disable the por and h ence speed up the on-board test of the device. 001aaf9 00 minimum 500 ns minimum 2000 ns por override set at this time sdi ce reset override minimum 500 ns fig 17. por override sequence
PCA21125_1 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 01 ? 16 november 2009 26 of 42 nxp semiconductors PCA21125 spi-bus real-time clock and calendar the setting of this mode requires that bit por_ovrd (register control_1, see ta b l e 5 ) be set logic 1 and that the signals at th e spi-bus pins sdi and ce ar e toggled as illustrated in figure 17 . all timings are required minimums. once the override mode has been entered, th e device immediately stops being reset and set-up operation can commence, i.e., entry in to the external clock test mode via the spi-bus access. the override mode can be cleared by writing logic 0 to bit por_ovrd. bit por_ovrd must be set logic 1 before a re-entry into the override mode is possible. setting bit por_ovrd logic 0 during normal operation has no effect except to prevent accidental entry into the por override mode. this is the recommended setting. 8.11 3-line spi-bus data transfer to and from the device is made via a 3-line spi-bus; see ta b l e 38 . table 38. serial interface pin function description ce chip enable input when high, data transfer is active when low, data transfer is inactive; the interface is reset; pull-down resistor included; active input can be higher than v dd , but must not be wired high permanently scl serial clock input when pin ce = low, this input might float; input can be higher than v dd sdi serial data input when pin ce = low, this input might float; input can be higher than v dd ; input data is sampled on the rising edge of scl sdo serial data output push-pull output; drives from v ss to v dd ; output data is changed on the falling edge of scl the data lines for input and output are split. the data input and output lines can be connected together to facilitat e a bidirectional data bus (see figure 18 ). 001aai56 0 sdi two wire mode sdo sdi single wire mode sdo fig 18. sdi, sdo configurations the chip enable signal is used to identify t he transmitted data. each data transfer is a byte, with the most signific ant bit (msb) sent first; see figure 19 . 001aaf9 14 command data bus chip enable data data data fig 19. data transfer overview
PCA21125_1 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 01 ? 16 november 2009 27 of 42 nxp semiconductors PCA21125 spi-bus real-time clock and calendar the transmission is initiated by an active high chip enable signal ce and terminated by an inactive low signal. the first byte transmitted is the command byte (see ta b l e 39 and figure 20 ). subsequent bytes will be either data to be written or data to be read. data is captured on the rising edge of the clock and transferred internally on the falling edge. the command byte defines the address of th e first register to be accessed and the read/write mode. the address counter will auto increm ent after every access and will reset to zero after the last valid register is accesse d. the read/write bit (r/ w ) defines if the following bytes will be read or write information. table 39. command byte definition bit symbol value description 7 r/ w data read or data write selection 0 write data 1 read data 6 to 4 sa 001 subaddress; other codes will cause the device to ignore data transfer 3 to 0 ra 00h to 0fh register address b7 b6 b5 b4 b3 b2 ra b0 b1 sa r/w 013aaa21 9 fig 20. command byte in figure 21 the register seconds is set to 45 seconds and the register minutes to 10 minutes. 001aaf915 xx address counter ce sdi scl 02 03 04 seconds data 45 bcd minutes data 10 bcd r/w addr 02 hex b7 0 b6 0 b5 0 b4 1 b3 0 b2 0 b1 1 b0 0 b7 0 b6 1 b5 0 b4 0 b3 0 b2 1 b1 0 b0 1 b7 0 b6 0 b5 0 b4 1 b3 0 b2 0 b1 0 b0 0 fig 21. serial bus write example in figure 22 the months and years registers are read. in this example, pins sdi and sdo are not connected together.
PCA21125_1 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 01 ? 16 november 2009 28 of 42 nxp semiconductors PCA21125 spi-bus real-time clock and calendar 001aaf916 xx address counter ce sdo sdi scl 07 08 09 months data 11 bcd years data 06 bcd r/w addr 07 hex b7 1 b6 0 b5 0 b4 1 b3 0 b2 1 b1 1 b0 1 b7 0 b6 0 b5 0 b4 1 b3 0 b2 0 b1 0 b0 1 b7 0 b6 0 b5 0 b4 0 b3 0 b2 1 b1 1 b0 0 fig 22. serial bus read example 8.11.1 interface watchdog timer during read/write operations, the time counting circuits are frozen. to prevent a situation where the accessing device becomes locked and does not clear the interface by setting pin ce low, the PCA21125 has a built in watc hdog timer. should the interface be active for more than 1 s from the time a valid subad dress is transmitted, then the PCA21125 will automatically clear the interface and allow the ti me counting circuits to continue counting. ce must return low once more before a new data transfer can be executed. 001aai56 3 valid sub-address running time counters wd timer data ce wd timer running time counters frozen running data t w(ce) < 1 s data data a. correct data transfer: read or write 001aai56 4 valid sub-address running time counters wd timer data ce wd timer running data transfer fail wd trips time counters frozen running data 1 s < t w(ce) < 2 s data data b. incorrect data transfer: read or write fig 23. interface watchdog timer
PCA21125_1 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 01 ? 16 november 2009 29 of 42 nxp semiconductors PCA21125 spi-bus real-time clock and calendar the watchdog is implemented to prevent the excessive loss of time due to interface access failure, e.g., if main power is removed from a battery backed-up system during an interface access. each time the watchdog period is exceeded, 1 s will be lost from the time counters. the watchdog will trigger between 1 s and 2 s after receiving a valid subaddress. 9. internal circuitry 013aaa2 18 osci osco int ce v ss v dd clkout scl sdi sdo PCA21125 fig 24. device diode protection diagram
PCA21125_1 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 01 ? 16 november 2009 30 of 42 nxp semiconductors PCA21125 spi-bus real-time clock and calendar 10. limiting values table 40. limiting values in accordance with the absolute maximum rating system (iec 60134). symbol parameter conditions min max unit v dd supply voltage ? 0.5 +6.5 v i dd supply current ? 50 +50 ma v i input voltage ? 0.5 +6.5 v v o output voltage ? 0.5 +6.5 v i i input current ? 10 +10 ma i o output current ? 10 +10 ma p tot total power dissipation - 300 mw t amb ambient temperature ? 40 +125 c v esd electrostatic discharge voltage hbm [1] - 3 500 v mm [2] - 200 v cdm [3] - 1 500 v i lu latch-up current [4] - 100 ma t stg storage temperature [5] ? 65 +150 c [1] pass level; human body model (hbm) according to ref. 5 ? jesd22-a114 ? . [2] pass level; machine model (mm), according to ref. 6 ? jesd22-a115 ? . [3] pass level; charged-device model (cdm), according to ref. 7 ? jesd22-c101 ? . [4] pass level; latch-up testing, according to ref. 8 ? jesd78 ? at maximum ambient temperature (t amb(max) = +125 c). [5] according to the nxp store and transport requirements (see ref. 10 ? nx3-00092 ? ) the devices have to be stored at a temperature of +8 c to +45 c and a humidity of 25 % to 75 %. for long term storage products deviant conditions are described in that document.
PCA21125_1 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 01 ? 16 november 2009 31 of 42 nxp semiconductors PCA21125 spi-bus real-time clock and calendar 11. static characteristics table 41. static characteristics v dd = 1.3 v to 5.5 v; v ss = 0 v; t amb =  40 q c to +125 q c; f osc = 32.768 khz; quartz r s = 60 k : ; c l = 12.5 pf; unless otherwise specified. symbol parameter conditions min typ max unit supply: pin v dd v dd supply voltage spi-bus inactive;  for clock data integrity [1] 1.3 - 5.5 v spi-bus active 1.6 - 5.5 v i dd supply current spi-bus active f scl = 6.0 mhz - - 500 p a f scl = 1.0 mhz - - 100 p a spi-bus inactive; clkout disabled;  v dd = 2.0 v to 5.0 v [2] t amb = 25 q c - 820 - na t amb =  40 q c to +125 q c - 1 140 3 300 na spi-bus inactive (f scl = 0 hz); clkout enabled at 32 khz t amb = 25 q c v dd = 5.0 v - 1 220 - na v dd = 3.0 v - 940 - na v dd = 2.0 v - 810 - na t amb =  40 q c to +125 q c v dd = 5.0 v - - 4 000 na v dd = 3.0 v - - 2 400 na v dd = 2.0 v - - 1 900 na inputs v i input voltage pin osci  0.5 - v dd + 0.5 v pins ce, sdi, scl  0.5 - +5.5 v v il low-level input voltage v ss - 0.3v dd v v ih high-level input voltage 0.7v dd - v dd v i l leakage current v i = v dd or v ss ;  on pins sdi, scl and clkout  1 0 +1 p a c i input capacitance [3] - - 7 pf r pd pull-down resistance pin ce - 240 550 k : outputs v o output voltage pins osco and sdo - - v dd + 0.5 v pins clkout and int ; refers to external pull-up voltage - - 5.5 v v oh high-level output voltage pin sdo 0.8v dd - v dd v v ol low-level output voltage pin sdo v ss - 0.2v dd v pins clkout and int ;  v dd = 5 v; i ol =  1.5 ma v ss - 0.4 v
PCA21125_1 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 01 ? 16 november 2009 32 of 42 nxp semiconductors PCA21125 spi-bus real-time clock and calendar [1] for reliable oscillator start at power-up: v dd = v dd(min) + 0.3 v. [2] timer source clock = 1 ? 60 hz; voltage on pins ce, sdi and scl at v dd or v ss . [3] implicit by design. [4] c l is a calculation of c ext and c osco in series: c l c ext c osco ? () c ext c osco + () -------------------------------------- - = . i oh high-level output current output source current; pin sdo; v oh = 4.6 v; v dd = 5 v 1.5 - - ma i ol low-level output current output sink current; pins int , sdo and clkout; v ol = 0.4 v; v dd = 5 v 1.5 - - ma i lo output leakage current v o = v dd or v ss ? 1 0 +1 a c ext external capacitance [4] - 25 - pf table 41. static characteristics ?continued v dd = 1.3 v to 5.5 v; v ss = 0 v; t amb = ? symbol parameter conditions min typ max unit
PCA21125_1 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 01 ? 16 november 2009 33 of 42 nxp semiconductors PCA21125 spi-bus real-time clock and calendar 12. dynamic characteristics table 42. dynamic characteristics v dd = 1.6 v to 5.5 v; v ss = 0 v; t amb = ? 40 c to +125 c; all timing values are valid within the operating supply voltage at ambient temperature and referenced to v il and v ih with an input voltage swing of v ss to v dd . symbol parameter conditions v dd = 1.6 v v dd = 2.7 v v dd = 4.5 v v dd = 5.5 v unit min max min max min max min max pin scl f clk(scl) scl clock frequency - 1.5 - 4.0 - 5.00 - 6.25 mhz t scl scl time 660 - 250 - 200 - 160 - ns t clk(h) clock high time 320 - 120 - 100 - 70 - ns t clk(l) clock low time 320 - 130 - 100 - 90 - ns t r rise time - 100 - 100 - 100 - 100 ns t f fall time - 100 - 100 - 100 - 100 ns pin ce t su(ce) ce set-up time 30 - 30 - 30 - 30 - ns t h(ce) ce hold time 100 - 60 - 40 - 30 - ns t rec(ce) ce recovery time 100 - 100 - 100 - 100 - ns t w(ce) ce pulse width - 0.99 - 0.99 - 0.99 - 0.99 s pin sdi t su set-up time 25 - 15 - 15 - 10 - ns t h hold time 100 - 60 - 40 - 30 - ns pin sdo t d(r)sdo sdo read delay time bus load = 85 pf - 320 - 130 - 100 - 90 ns t dis(sdo) sdo disable time no load value [1] - 50 - 30 - 30 - 25 ns t t(sdi-sdo) transition time from sdi to sdo to avoid bus conflict 0 - 0 - 0 - 0 - ns [1] bus will be held up by bus ca pacitance; use rc time const ant with application values.
001aag900 r/w sa2 ra0 b7 b6 b0 b7 b6 b0 b0 b6 b7 sdi sdo sdo hi z hi z sdi scl ce write read t w(ce) 80% 20% t clk(l) t f t h(ce) t rec(ce) t dis(sdo) t d(r)sdo t t(sdi-sdo) t r t h t su t clk(h) t su(ce) fig 25. spi interface timing PCA21125_1 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 01 ? 16 november 2009 34 of 42 nxp semiconductors PCA21125 spi-bus real-time clock and calendar
PCA21125_1 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 01 ? 16 november 2009 35 of 42 nxp semiconductors PCA21125 spi-bus real-time clock and calendar 13. application information 13.1 application diagram 013aaa17 9 PCA21125 1 f supercapacitor 100 nf osci osco int clkout ce scl sdi sdo c ext v dd v ss the 1 farad capacitor is used as a standby and ba ck-up supply. with the rtc in its minimum power configuration, i.e., timer off and clkout off, the rtc can operate for several weeks. fig 26. application diagram 13.2 quartz frequency adjustment 1. method 1: fixed osci capacitor a fixed capacitor can be used whose valu e can be determined by evaluating the average capacitance necessary for the application layout; see figure 26 . the frequency is best measured via the 32.768 khz signal at pin clkout available after power-on. the frequency tolerance depends on the quartz crystal tolerance, the capacitor tolerance and the device-to-device tolerance (on average 5 10 ? 6 ). an average deviation of 5 minutes per year ca n easily be achieved. 2. method 2: osci trimmer fast setting of a trimmer is possible using the 32.768 khz signal at pin clkout available after power-on. 3. method 3: osco output direct measurement of osco output (acc ounting for test probe capacitance).
PCA21125_1 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 01 ? 16 november 2009 36 of 42 nxp semiconductors PCA21125 spi-bus real-time clock and calendar 14. package outline unit a 1 a 2 a 3 b p cd (1) e (2) (1) eh e ll p qz y w v references outline version european projection issue date iec jedec jeita mm 0.15 0.05 0.95 0.80 0.30 0.19 0.2 0.1 5.1 4.9 4.5 4.3 0.65 6.6 6.2 0.4 0.3 0.72 0.38 8 0 o o 0.13 0.1 0.2 1 dimensions (mm are the original dimensions) notes 1. plastic or metal protrusions of 0.15 mm maximum per side are not included. 2. plastic interlead protrusions of 0.25 mm maximum per side are not included. 0.75 0.50 sot402-1 mo-153 99-12-27 03-02-18 w m b p d z e 0.25 17 14 8 a a 1 a 2 l p q detail x l (a ) 3 h e e c v m a x a y 0 2.5 5 mm scale tssop14: plastic thin shrink small outline package; 14 leads; body width 4.4 mm sot402 -1 a max. 1.1 pin 1 index fig 27. package outline sot402-1 (tssop14)
PCA21125_1 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 01 ? 16 november 2009 37 of 42 nxp semiconductors PCA21125 spi-bus real-time clock and calendar 15. handling information all input and output pins are protected ag ainst electrostatic discharge (esd) under normal handling. when handling metal-oxide semiconductor (mos) devices ensure that all normal precautions are taken as described in jesd625-a , iec 61340-5 or equivalent standards. 16. soldering of smd packages this text provides a very brief insight into a complex technology. a more in-depth account of soldering ics can be found in application note an10365 ?surface mount reflow soldering description? . 16.1 introduction to soldering soldering is one of the most common methods through which packages are attached to printed circuit boards (pcbs), to form electr ical circuits. the soldered joint provides both the mechanical and the electrical connection. th ere is no single sold ering method that is ideal for all ic packages. wave soldering is often preferred when through-hole and surface mount devices (smds) are mixed on one printed wiring board; however, it is not suitable for fine pitch smds. reflow soldering is ideal for the small pitches and high densities that come with increased miniaturization. 16.2 wave and reflow soldering wave soldering is a joining technology in which the joints are made by solder coming from a standing wave of liquid solder. the wave soldering process is suitable for the following: ? through-hole components ? leaded or leadless smds, which are glued to the surface of the printed circuit board not all smds can be wave soldered. packages with solder balls, and some leadless packages which have solder lands underneath the body, cannot be wave soldered. also, leaded smds with leads having a pitch smaller than ~0.6 mm cannot be wave soldered, due to an increased pr obability of bridging. the reflow soldering process involves applying solder paste to a board, followed by component placement and exposure to a temperature profile. leaded packages, packages with solder balls, and leadless packages are all reflow solderable. key characteristics in both wave and reflow soldering are: ? board specifications, in cluding the board finish , solder masks and vias ? package footprints, including solder thieves and orientation ? the moisture sensitivit y level of the packages ? package placement ? inspection and repair ? lead-free soldering versus snpb soldering
PCA21125_1 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 01 ? 16 november 2009 38 of 42 nxp semiconductors PCA21125 spi-bus real-time clock and calendar 16.3 wave soldering key characteristics in wave soldering are: ? process issues, such as application of adhe sive and flux, clinching of leads, board transport, the solder wave parameters, and the time during which components are exposed to the wave ? solder bath specifications, including temperature and impurities 16.4 reflow soldering key characteristics in reflow soldering are: ? lead-free versus snpb solderi ng; note that a lead-free reflow process usually leads to higher minimum peak temperatures (see figure 28 ) than a snpb process, thus reducing the process window ? solder paste printing issues including smearing, release, and adjusting the process window for a mix of large and small components on one board ? reflow temperature profile; this profile includ es preheat, reflow (in which the board is heated to the peak temperature) and coolin g down. it is imperative that the peak temperature is high enough for the solder to make reliable solder joints (a solder paste characteristic). in addition, the peak temperature must be low enough that the packages and/or boards are not damaged. the peak temperature of the package depends on package thickness and volume and is classified in accordance with ta b l e 43 and 44 table 43. snpb eutectic process (from j-std-020c) package thickness (mm) package reflow temperature ( c) volume (mm 3 ) < 350 350 < 2.5 235 220 2.5 220 220 table 44. lead-free process (from j-std-020c) package thickness (mm) package reflow temperature ( c) volume (mm 3 ) < 350 350 to 2 000 > 2 000 < 1.6 260 260 260 1.6 to 2.5 260 250 245 > 2.5 250 245 245 moisture sensitivity precautions, as indicat ed on the packing, must be respected at all times. studies have shown that small packages reach higher temperatures during reflow soldering, see figure 28 .
PCA21125_1 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 01 ? 16 november 2009 39 of 42 nxp semiconductors PCA21125 spi-bus real-time clock and calendar 001aac84 4 temperature time minimum peak temperature = minimum soldering temperature maximum peak temperature = msl limit, damage level peak temperature msl: moisture sensitivity level fig 28. temperature profiles for large and small components for further information on temperature profiles, refer to application note an10365 ?surface mount reflow soldering description? . 17. abbreviations table 45. abbreviations acronym description aec automotive electronics council am ante meridiem bcd binary coded decimal cdm charged-device model cmos complementary metal oxide semiconductor hbm human body model ic integrated circuit mm machine model mos metal oxide semiconductor msb most significant bit msl moisture sensitivity level pcb printed-circuit board pm post meridiem por power-on reset rc resistance-capacitance rtc real-time clock smd surface mount device spi serial peripheral interface
PCA21125_1 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 01 ? 16 november 2009 40 of 42 nxp semiconductors PCA21125 spi-bus real-time clock and calendar 18. references [1] an10365 ? surface mount reflow soldering description [2] iec 60134 ? rating systems for electronic tu bes and valves and analogous semiconductor devices [3] iec 61340-5 ? protection of electronic devices from electrostatic phenomena [4] ipc/jedec j-std-020d ? moisture/reflow sensitiv ity classification for nonhermetic solid state surface mount devices [5] jesd22-a114 ? electrostatic discharge (esd) sensitivity testing human body model (hbm) [6] jesd22-a115 ? electrostatic discharge (esd) se nsitivity testing machine model (mm) [7] jesd22-c101 ? field-induced charged-device model test method for electrostatic-discharge-withstand thresh olds of microelectronic components [8] jesd78 ? ic latch-up test [9] jesd625-a ? requirements for handling elec trostatic-discharge-sensitive (esds) devices [10] nx3-00092 ? nxp store and transport requirements [11] snv-fa-01-02 ? marking formats integrated circuits 19. revision history table 46. revision history document id release date data sheet status change notice supersedes PCA21125_1 20091116 product data sheet - -
PCA21125_1 ? nxp b.v. 2009. all rights reserved. product data sheet rev. 01 ? 16 november 2009 41 of 42 nxp semiconductors PCA21125 spi-bus real-time clock and calendar 20. legal information 20.1 data sheet status document status [1] [2] product status [3] definition objective [short] data sheet development this document contains data from the objec tive specification for product development. preliminary [short] data sheet qualification this document contains data from the preliminary specification. product [short] data sheet production this document contains the product specification. [1] please consult the most recently issued document before initiating or completing a design. [2] the term ?short data sheet? is explained in section ?definitions?. [3] the product status of device(s) described in this document may have changed since this document was published and may differ in case of multiple device s. the latest product status information is available on the internet at url http://www.nxp.com . 20.2 definitions draft ? the document is a draft versi on only. the content is still under internal review and subject to formal approval, which may result in modifications or additions. nxp semiconductors does not give any representations or warranties as to the accuracy or completeness of information included herein and shall hav e no liability for the consequences of use of such information. short data sheet ? a short data sheet is an extract from a full data sheet with the same product type number(s) and title. a short data sheet is intended for quick reference only and should not be relied upon to contain detailed and full information. for detailed and full information see the relevant full data sheet, which is available on request vi a the local nxp semiconductors sales office. in case of any inconsistency or conflict with the short data sheet, the full data sheet shall prevail. 20.3 disclaimers general ? information in this document is believed to be accurate and reliable. however, nxp semiconductors d oes not give any representations or warranties, expressed or implied, as to the accuracy or completeness of such information and shall have no liability for the consequences of use of such information. right to make changes ? nxp semiconductors reserves the right to make changes to information published in this document, including without limitation specifications and product descriptions, at any time and without notice. this document supersedes and replaces all information supplied prior to the publication hereof. suitability for use ? nxp semiconductors products are not designed, authorized or warranted to be suitable for use in medical, military, aircraft, space or life support equipment, nor in applications where failure or malfunction of an nxp semiconductors product can reasonably be expected to result in personal injury, death or severe property or environmental damage. nxp semiconductors accepts no liability for inclusion and/or use of nxp semiconductors products in such equipment or applications and therefore such inclusion and/or use is at the customer?s own risk. applications ? applications that are described herein for any of these products are for illustrative purpos es only. nxp semiconductors makes no representation or warranty that such applications will be suitable for the specified use without further testing or modification. limiting values ? stress above one or more limiting values (as defined in the absolute maximum ratings system of iec 60134) may cause permanent damage to the device. limiting values are stress ratings only and operation of the device at these or any other conditions above those given in the characteristics sections of this document is not implied. exposure to limiting values for extended periods may affect device reliability. terms and conditions of sale ? nxp semiconductors products are sold subject to the general terms and condit ions of commercial sale, as published at http://www.nxp.com/profile/terms , including those pertaining to warranty, intellectual property rights infringement and limitation of liability, unless explicitly otherwise agreed to in writ ing by nxp semiconductors. in case of any inconsistency or conflict between information in this document and such terms and conditions, the latter will prevail. no offer to sell or license ? nothing in this document may be interpreted or construed as an offer to sell products t hat is open for acceptance or the grant, conveyance or implication of any lic ense under any copyrights, patents or other industrial or intellectual property rights. export control ? this document as well as the item(s) described herein may be subject to export control regulations. export might require a prior authorization from national authorities. 20.4 trademarks notice: all referenced brands, produc t names, service names and trademarks are the property of their respective owners. 21. contact information for more information, please visit: http://www.nxp.com for sales office addresses, please send an email to: salesaddresses@nxp.com
nxp semiconductors PCA21125 spi-bus real-time clock and calendar ? nxp b.v. 2009. all rights reserved. for more information, please visit: http://www.nxp.com  for sales office addresses, please se nd an email to: salesaddresses@nxp.com date of release: 16 november 2009 document identifier: PCA21125_1 please be aware that important notices concerning this document and the product(s) described herein, have been included in section ?legal information?. 22. contents 1 general description . . . . . . . . . . . . . . . . . . . . . . 1 2 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 3 applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 4 ordering information . . . . . . . . . . . . . . . . . . . . . 2 5 marking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 6 block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . 2 7 pinning information . . . . . . . . . . . . . . . . . . . . . . 3 7.1 pinning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 7.2 pin description . . . . . . . . . . . . . . . . . . . . . . . . . 3 8 functional description . . . . . . . . . . . . . . . . . . . 4 8.1 register overview . . . . . . . . . . . . . . . . . . . . . . . 5 8.2 control and status registers . . . . . . . . . . . . . . . 6 8.2.1 register control_1 . . . . . . . . . . . . . . . . . . . . . . 6 8.2.2 register control_2 . . . . . . . . . . . . . . . . . . . . . . 6 8.3 time and date registers . . . . . . . . . . . . . . . . . . 7 8.3.1 register seconds . . . . . . . . . . . . . . . . . . . . . . . 7 8.3.2 register minutes. . . . . . . . . . . . . . . . . . . . . . . . 7 8.3.3 register hours . . . . . . . . . . . . . . . . . . . . . . . . . 8 8.3.4 register days . . . . . . . . . . . . . . . . . . . . . . . . . . 8 8.3.5 register weekdays. . . . . . . . . . . . . . . . . . . . . . 8 8.3.6 register months . . . . . . . . . . . . . . . . . . . . . . . . 9 8.3.7 register years . . . . . . . . . . . . . . . . . . . . . . . . . 9 8.3.8 setting and reading the time. . . . . . . . . . . . . . 10 8.4 alarm registers . . . . . . . . . . . . . . . . . . . . . . . . 11 8.4.1 register minute_alarm . . . . . . . . . . . . . . . . . . 11 8.4.2 register hour_alarm . . . . . . . . . . . . . . . . . . . 11 8.4.3 register day_alarm . . . . . . . . . . . . . . . . . . . . 12 8.4.4 register weekday_alarm . . . . . . . . . . . . . . . . 12 8.4.5 alarm flag . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 8.5 register clkout_control and clock output. . 14 8.6 timer registers . . . . . . . . . . . . . . . . . . . . . . . . 14 8.6.1 second and minute interrupt . . . . . . . . . . . . . 15 8.6.2 countdown timer function . . . . . . . . . . . . . . . . 16 8.6.3 timer flags . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 8.7 interrupt output . . . . . . . . . . . . . . . . . . . . . . . . 18 8.7.1 minute and second interrupts . . . . . . . . . . . . . 19 8.7.2 countdown timer interrupts. . . . . . . . . . . . . . . 20 8.7.3 alarm interrupts . . . . . . . . . . . . . . . . . . . . . . . 21 8.8 external clock test mode . . . . . . . . . . . . . . . . 21 8.9 stop bit function . . . . . . . . . . . . . . . . . . . . . . 22 8.10 reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 8.10.1 por override . . . . . . . . . . . . . . . . . . . . . . . . . 25 8.11 3-line spi-bus . . . . . . . . . . . . . . . . . . . . . . . . . 26 8.11.1 interface watchdog timer . . . . . . . . . . . . . . . . 28 9 internal circuitry. . . . . . . . . . . . . . . . . . . . . . . . 29 10 limiting values. . . . . . . . . . . . . . . . . . . . . . . . . 30 11 static characteristics . . . . . . . . . . . . . . . . . . . 31 12 dynamic characteristics. . . . . . . . . . . . . . . . . 33 13 application information . . . . . . . . . . . . . . . . . 35 13.1 application diagram . . . . . . . . . . . . . . . . . . . . 35 13.2 quartz frequency adjustment. . . . . . . . . . . . . 35 14 package outline. . . . . . . . . . . . . . . . . . . . . . . . 36 15 handling information . . . . . . . . . . . . . . . . . . . 37 16 soldering of smd packages . . . . . . . . . . . . . . 37 16.1 introduction to soldering. . . . . . . . . . . . . . . . . 37 16.2 wave and reflow soldering. . . . . . . . . . . . . . . 37 16.3 wave soldering . . . . . . . . . . . . . . . . . . . . . . . 38 16.4 reflow soldering . . . . . . . . . . . . . . . . . . . . . . 38 17 abbreviations . . . . . . . . . . . . . . . . . . . . . . . . . 39 18 references. . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 19 revision history . . . . . . . . . . . . . . . . . . . . . . . 40 20 legal information . . . . . . . . . . . . . . . . . . . . . . 41 20.1 data sheet status . . . . . . . . . . . . . . . . . . . . . . 41 20.2 definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 20.3 disclaimers . . . . . . . . . . . . . . . . . . . . . . . . . . 41 20.4 trademarks . . . . . . . . . . . . . . . . . . . . . . . . . . 41 21 contact information . . . . . . . . . . . . . . . . . . . . 41 22 contents. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42


▲Up To Search▲   

 
Price & Availability of PCA21125

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X